﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class maximalIncreasingSequence
{
    static void Main()
    {
        int[] Arr = { 3, 2, 3, 4, 2, 2, 4, 5, 6, 7, 3 };
        int maxLen = 0;
        int start = 0;
        for (int element = 0; element < (Arr.Length - 1); element++) 
        {
            int len = 0;
            if (Arr[element] < Arr[element + 1]) 
            {
                for (int counter = element; counter < (Arr.Length - 1); counter++) 
                {
                    if (Arr[counter] > Arr[counter + 1])
                    {
                        break;
                    }
                    len++;
                }
            }
            if (len > maxLen) 
            {
                maxLen = len; // 2
                start = element; //1 
            }
        }
        for (int counter = start; counter < (start + maxLen + 1); counter++) 
        {
            Console.WriteLine("[{0}] {1}", counter, Arr[counter]);
        }
    }
}

